import React from 'react'
import { Button} from 'antd';
export default function buttonAuth(props) {
  console.log(props);
  const permissions=JSON.parse(localStorage.permissions)
  const has=permissions.includes(props.addC)
  if (has) {
    return props.btn
  }else{
    return null
  }
   
}
